package com.lgw.commons.model.pojo;

import com.lgw.commons.model.base.BaseModel;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@NoArgsConstructor
public class Coupon extends BaseModel {
    // 自增主键
    private Integer id;

    // 关联优惠券模板的主键(逻辑外键)
    private Integer templateId;

    //领取用户
    private Long customerId;

    // 优惠券码
    private String couponCode;

    // 领取时间
    private Date assignTime;

    // 优惠券状态
    private Integer status;

    public Coupon(Integer templateId, Long customerId, String couponCode, Integer status){
        this.templateId = templateId;
        this.customerId = customerId;
        this.couponCode = couponCode;
        this.status = status;
    }
}
